import React from 'react';
import {useRoutes} from 'react-router-dom'
import routes from "./router";
import AppHeader from "./components/appHeader";
import AppFooter from "./components/appFooter";

const App = () => {
    return (
        <div className="app">
            <AppHeader />
            <div className='page'>
                {useRoutes(routes)}
            </div>
            <AppFooter/>
        </div>
    );
};

export default App;